package com.bestcem.xm.survey.enums;

import lombok.Getter;

/**
 * DataTypeEnum
 * @author jy.zhao
 * @version 1.0
 * @date 2021/9/1 20:01
 **/
@Getter
public enum DataTypeEnum {

    /**
     * 数字
     */
    INTEGER(0, "Integer"),

    /**
     * 字符串
     */
    STRING(1, "String"),

    /**
     * Double
     */
    DOUBLE(2, "Double"),

    /**
     * List
     */
    LIST(3, "List"),

    /**
     * Map
     */
    MAP(4, "Map"),

    /**
     * BigDecimal
     */
    BIG_DECIMAL(5, "BigDecimal"),

    /**
     * INTEGER_STRING
     */
    INTEGER_STRING(6, "INTEGER_STRING"),

    /**
     * INTEGER_DOUBLE
     */
    INTEGER_DOUBLE(7, "INTEGER_DOUBLE"),

    /**
     * INTEGER_DOUBLE_STRING
     */
    INTEGER_DOUBLE_STRING(8, "INTEGER_DOUBLE_STRING");


    private final String name;

    private final int index;

    DataTypeEnum(int index, String name) {
        this.name = name;
        this.index = index;
    }

}
